<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <div class="cf">

        <table class="table table-striped">
                <caption>
                    邮件模版预览
                </caption>
                <tbody>
                <?php foreach($info as $key=>$vo){ ?>
                <switch name="key">
                    <case value="name">
                        <tr>
                            <td>模版名称</td>
                            <td>{$vo}</td>
                        </tr>
                    </case>
                    <case value="description">
                        <tr>
                            <td>模版描述</td>
                            <td>{$vo}</td>
                        </tr>
                    </case>
                    <case value="mail_title">
                        <tr>
                            <td>邮件标题</td>
                            <td>{$vo}</td>
                        </tr>
                    </case>
                    <case value="mail_content">
                        <tr>
                            <td>邮件内容</td>
                            <td>{$vo}</td>
                        </tr>
                    </case>
                    <case value="preg_content">
                        <tr>
                            <td>替换标签</td>
                            <td>{$vo}</td>
                        </tr>
                    </case>
                    <case value="sign_name">
                        <tr>
                            <td>签名</td>
                            <td>{$vo}</td>
                        </tr>
                    </case>
                    <case value="status">
                        <tr>
                            <td>状态</td>
                            <td><eq name="vo" value="1">启用 <else />未启用</eq></td>
                        </tr>
                    </case>
                    <default />
                </switch>
                <?php } ?>

                </tbody>
        </table>

        </div>

</block>

<!-- 加载底部JS -->
<block name="script">

</block>